/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.raflik.queryxml.ui.tasks;

/**
 *
 * @author raflik
 */
public enum QueryResultCode {

    QUERY_OK {

        @Override
        public boolean isError() {
            return false;
        }
    },
    RESULT_EMPTY {

        @Override
        public boolean isError() {
            return false;
        }
    },
    QUERY_EMPTY,
    QUERY_NOT_VALID,
    QUERY_FAILED,
    NO_INPUT_FILE,
    INPUT_FILE_NOT_FOUND,
    INPUT_READ_FAILED,
    INPUT_FILE_MALFORMED_XML,
    TEMP_FILE_CREATE_FAILED,
    TEMP_FILE_WRITE_FAILED,
    SERIALIZATION_FAILED,
    NO_QUERY_LANG,;

    public boolean isError() {
        return true;
    }
}
